package com.zhang.abstractFactory.example;

/**
 * @author ElloeStudy(Sifa Zhang)
 * @create 2022-03-01 19:12
 * To: 真常应物，真常得性，常清常静，常清静矣
 */
public class MaleHumanFactory extends AbstractHumanFactory{
    @Override
    public Human createYellowHuman() {
        // 创建一个黑人男性
        return super.createHuman(HumanEnum.YellowMaleHuman);
    }

    @Override
    public Human createBlackHuman() {
        // 创建一个男性黑人
        return super.createHuman(HumanEnum.BlackMaleHuman);
    }

    @Override
    public Human createWhiteHuman() {
        // 创建一个白种人男性
        return super.createHuman(HumanEnum.WhiteMaleHuman);
    }
}
